package com.yzc.android.beans;

import android.os.Parcel;

/**
 * Created by yzc on 16/4/7.
 */
public class UserInfoBean implements android.os.Parcelable {
    public String userId;
    public String userName;
    public String userAvatarThumbnailUrl;
    public String userAvatarUrl;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.userName);
        dest.writeString(this.userAvatarThumbnailUrl);
        dest.writeString(this.userAvatarUrl);
    }

    public UserInfoBean() {
    }

    protected UserInfoBean(Parcel in) {
        this.userId = in.readString();
        this.userName = in.readString();
        this.userAvatarThumbnailUrl = in.readString();
        this.userAvatarUrl = in.readString();
    }

    public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
        @Override
        public UserInfoBean createFromParcel(Parcel source) {
            return new UserInfoBean(source);
        }

        @Override
        public UserInfoBean[] newArray(int size) {
            return new UserInfoBean[size];
        }
    };
}
